package
{
	
	import flash.display3D.Context3D;
	import flash.events.MouseEvent
	import flash.utils.ByteArray;
	import starling.display.Image;
	import starling.display.Sprite;
	import starling.text.TextField;

	import starling.core.Starling

	import slicesPanels.Slice3Panel;
	import slicesPanels.Slice3PanelSettings
	import slicesPanels.Slice9Panel;
	import slicesPanels.Slice9PanelSettings

	public class Game extends Sprite
	{
	
		public function Game()
		{
			if (AtlasHolder.instance.atlas) {
				trace("ook");
			}
			
			// SLICE_3
			/*var btnView:Slice3Panel = new Slice3Panel(new Slice3PanelSettings("btn_green_side", "btn_green_centre"), "gui");
			btnView.setSize(new Size(200, btnView.getSize().height));
			addChild(btnView);*/
			
			var btnView:Slice9Panel = new Slice9Panel(new Slice9PanelSettings("bubble_colour", "bubble_corner", null, "bubble_centre_up"), "gui");
			btnView.setSize(new Size(200, 200));
			addChild(btnView);
			
			
			PixelMovingHelper.movePixelNow(btnView);
			
		//	//var img:SimpleImage = new SimpleImage("btn_green_side");
			//addChild(img);
			// display a sub-texture
			
			//var moonTexture:Texture = atlas.getTexture("icon_active");
			//var moonImage:Image = new Image(moonTexture);
			//addChild(moonImage);

		
			
		}
		
	}
}